package com.ihd.ihardware.view.lock.view;

import android.os.Bundle;

import com.ihd.ihardware.R;
import com.ihd.ihardware.databinding.ActivityLockZwAuthBinding;
import com.ihd.ihardware.pojo.Test_zw_auth;
import com.ihd.ihardware.view.lock.viewmodel.LockZWInputViewModel;

import java.util.ArrayList;
import java.util.List;

import cn.wowjoy.commonlibrary.base.BaseActivity;

public class LockZWAuthActivity extends BaseActivity<ActivityLockZwAuthBinding, LockZWInputViewModel> {

    List<Test_zw_auth> md = new ArrayList<>();

    @Override
    protected void init(Bundle savedInstanceState) {
        mImmersionBar.statusBarDarkFont(false).init();

        binding.mtitlebar.setLeftBack(this);
        binding.mtitlebar.setLeftImageResource(R.drawable.lock_nb_back);
        binding.mtitlebar.setTitle("指纹授权列表");
        binding.mtitlebar.setTitleColor(getResources().getColor(R.color.C_FFFFFF));

        binding.zwRV.setAdapter(viewModel.mZWAuthAdapter);

        md.add(new Test_zw_auth(0, "03.18 17:49"));
        md.add(new Test_zw_auth(1, "03.18 17:49"));
        md.add(new Test_zw_auth(2, "03.18 17:49"));
        md.add(new Test_zw_auth(1, "03.18 17:49"));
        viewModel.setZWAuths(md);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_lock_zw_auth;
    }

    @Override
    protected Class getViewModelClass() {
        return LockZWInputViewModel.class;
    }
}
